package com.dcc.inventory.servicesimp;

import com.dcc.inventory.entity.Auth;
import com.dcc.inventory.mapper.AuthMapper;
import com.dcc.inventory.services.AuthServices;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
@Service
@Transactional
public class AuthServicesImp implements AuthServices {
    @Resource
    AuthMapper authMapper;
    @Override
    public int updateAuth(Auth auth) {
        return authMapper.updateAuth(auth);
    }

    @Override
    public Auth searchAuth(String email) {

        return authMapper.searchAuth(email);
    }
}
